package com.cskaoyan.mapper;

import com.cskaoyan.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 类<code>Doc</code>用于：TODO
 *
 * @author Acher
 * @version 1.0
 * @date 2021-10-16
 */
@Repository
public interface UserMapper {
    boolean insertUser(User user);

    List<User> selectAllUsers();

    int deleteUser(@Param("id") Integer id);

    int selectUserById(Integer id);

    int update(User user);

    Integer updateUserNameById(@Param("id") Integer id, @Param("name") String name);
}
